package com.itheima.mapper;

import com.itheima.domain.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserMapper {
    @Select("select * from user")
    List<User> findAll();
    @Insert("insert into user values(id,#{age},#{username},#{password},#{email},#{sex})")
    void save(User user);
    //批量删除
    void deleteByIds(Integer[] idInt);
}
